<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<% if content_for? :title -%>
  <title>Boxroom | <%= content_for :title %></title>
<% else -%>
  <title>Boxroom</title>
<% end -%>
  <%= stylesheet_link_tag 'application' %>
  <%= javascript_include_tag 'application' %>
  <%= csrf_meta_tag %>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8">
</head>
<body>
  <div id="container">
    <% if flash[:notice] -%>
    <div class="notice" id="notice">
      <p>
        <%= flash[:notice] %>
      </p>
    </div>
    <% end -%>
    <% if flash[:alert] -%>
    <div class="error" id="alert">
      <p>
        <%= flash[:alert] %>
      </p>
    </div>
    <% end -%>
    <%= render 'shared/header' %>
    <%= render 'shared/menu' %>
    <div id="content">
      <%= yield %>
    </div>
    <div id="footer_spacer"></div>
    <%= render 'shared/footer' %>
  </div>
</body>
</html>
